package com.cms.archives

class CmsComment {
	
	static belongsTo = [article:CmsArticle]
	
	String author
	String email
	String ipAddress
	String websiteUrl
	String content
	static constraints = {
		author(maxSize:80, blank: false, nullable: false)
		email(email:true, maxSize:80, blank: false, nullable: false)
		content(maxSize:2000, blank: false, nullable: false)
		websiteUrl(url:true, maxSize:100, nullable: true, blank: true)
		ipAddress(maxSize:50, nullable: false, blank: false)
	}
}
